package com.mxdx.edu.dao;

import com.mxdx.edu.common.BaseDao;
import com.mxdx.edu.model.HwLibraryTitle;
import com.mxdx.edu.model.HwStudentRecord;

import java.util.List;
import java.util.Map;

public interface HwLibraryDao extends BaseDao<HwLibraryTitle> {

    //region 获取试题

    Map<String, Object> findHwTitleByMap(Map<String, Object> param);

    List<Map<String,Object>> findHwSubjectByMap(Map<String, Object> param);

    List<Map<String,Object>> findHwMainByMap(Map<String, Object> param);

    Map<String,Object> findHwMainTestByMap(Map<String, Object> param);

    List<Map<String,Object>> findHwOptionByMap(Map<String, Object> param);

    List<Map<String,Object>> findHwAnswerByMap(Map<String, Object> param);

    List<Map<String,Object>> findHwExplainByMap(Map<String, Object> param);

    //endregion

    //region 学生作业答题 列表

    List<HwStudentRecord> findHwStudentRecordByMap(Map<String, Object> param);

    int findHwStudentCountByMap(Map<String, Object> param);

    List<Map<String,Object>> findHwStudentTestIdsByMap(Map<String, Object> param);

    //学生答题保存
    int hwStudentSave(HwStudentRecord hwStudentRecord);

    int hwStudentUpdate(HwStudentRecord hwStudentRecord);

    int hwStudentDelete(HwStudentRecord hwStudentRecord);

    //endregion

}
